#include "Plot/main.hpp"

Plot::Plot() :
    rclcpp ::Node("Plot")
{
    // Timer_01 = this->create_wall_timer(100ms, std::bind(&Plot::Timer_Callback_01, this));
}
void Plot::Timer_Callback_01()
{
    for (auto &value : array_value_)
    {
        value += 1;
    }

    plot_->publishDoubleArray(array_value_);
}

int main(int argc, char **argv)
{
    rclcpp::init(argc, argv);
    auto node = std::make_shared<Plot>();
    node->init();
    rclcpp::spin(node);
    rclcpp::shutdown();
    return 0;
}
